package com.artisan.domain.repositoryInterface;

import com.artisan.domain.entity.MMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 快捷菜单数据访问接口
 */
@Repository
public interface IMenuRepository extends JpaRepository<MMenu, Integer> {
    @Query(value="select c from MMenu c where c.id in :ids")
    List<MMenu> find(@Param("ids") String ids);
}
